import time
import socket
import threading
import os
def func():
    sk = socket.socket()
    sk.connect(('127.0.0.1', 8000))
    sk.send(b'hello')
    #time.sleep(5)
    print(os.getpid())
    print(sk.recv(1024))
    sk.close()

for i in range(5):
    threading.Thread(target=func).start()